parallel-debian: Ensure we're not running make-base as root actually
authorColin Walters <walters@verbum.org>
Thu, 10 Nov 2011 16:56:34 +0000 (11:56 -0500)
committerColin Walters <walters@verbum.org>
Thu, 10 Nov 2011 16:56:34 +0000 (11:56 -0500)
parallel-debian/gnomeos-make-base.sh

index eb80b048c26741d9cc5d69f15743fcf0c75eea09..f95c3776bd3b83729bbb604defe4195a6334f8a5 100755 (executable)
@@ -35,6 +35,11 @@ EOF
     fi
 done
 
+if test $(id -u) == 0; then
+    echo "Should not run this script as root."
+    exit 1
+fi
+
 if test -z "${OSTREE}"; then
     OSTREE=`command -v ostree || true`
 fi